package cn.nawang.ebeim.ui.util;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;


public class ResourceLoader {
  public static final String RESOURCE_FILE = "";
  public void load1() throws IOException {
    String resource = "resources/config.properties";
    InputStream in = getClass().getResourceAsStream(resource);
    Properties props = new Properties();
    props.load(in);
  }
  
  public void load2() throws IOException {
    String resource = "resources/config.properties";
    InputStream in = getClass().getClassLoader().getResourceAsStream(resource);
    Properties props = new Properties();
    props.load(in);
  }
  
  public void load3() throws IOException {
    String resource = "resources/config.properties";
    InputStream in = getClass().getClassLoader().getSystemResourceAsStream(resource);
    Properties props = new Properties();
    props.load(in);
  }
  public static void main(String[] args) throws IOException {
    ResourceLoader loader = new ResourceLoader();
    loader.load1();
    loader.load2();
    loader.load3();
  }

}
